@import '~@/style/base.less';
@color_tag: #f05168;
.coupon_card {
  &.disabled {
    opacity: 0.6;
  }
}

.coupon_wrap {
  position: relative;
  z-index: 2;
  display: flex;
  // height: 218px;
  border-radius: 10px;
  // overflow: hidden;
  padding: 20px 24px 0;
  // .card_shadow();
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% + 20px);
    background: url('~@/assets/images/coupon_bg.png') center top no-repeat;
    background-size: 100% 100%;
  }
}

.check_box {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -35px;
}

.coupon_price {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 192px;
  padding-bottom: 000px;
  color: @color_text;
  > p {
    margin: 0;
    font-size: 24px;
  }
  .price {
    font-size: 58px;
    font-weight: bold;
    line-height: 38px;
    color: @color_price;
    &.small {
      font-size: 42px;
    }
  }
}

.coupon_info {
  position: relative;
  flex: 1 1;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  overflow: hidden;
  padding-left: 24px;
  &::before {
    content: '';
    display: block;
    width: 1px;
    height: 28px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: @color_border_simple;
  }
  .info {
    position: relative;
    padding: 33px 0 20px;
    flex: 1 1;
    > h3 {
      font-size: 26px;
      font-weight: normal;
      margin: 0 0 14px;
      padding-right: 170px;
      .elip();
    }
    > p {
      margin: 0;
      color: @color_subtext;
      font-size: 24px;
    }
  }
  .rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    line-height: 70px;
    padding: 0 16px 0 0;
    font-size: 24px;
    color: @color_subtext;
    border-top: 1px dashed #eeeeee;
    .tobeMer {
      flex: 1;
    }
    &::after {
      content: '';
      width: 56px;
      height: 56px;
      background: url('~@/assets/images/shop_down@2x.png') center no-repeat;
      background-size: 30px auto;
      transition: 0.5s;
      transition-property: transform;
    }

    &.active::after {
      transform: rotate(180deg);
    }
  }
}

.zIndex {
  // position: relative;
  // z-index: 3;
  // top: -44px;
}

.coupon_rule {
  padding: 22px 26px;
  font-size: 22px;
  color: @color_subtext;
  background: #f8f8f8;
  word-break: break-all;
  word-wrap: break-word;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  margin: 0 24px;
  &.in {
    animation: rule_in 0.5s;
    animation-fill-mode: both;
  }
}

@keyframes rule_in {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(-0%);
  }
}

.status_unuse {
  position: absolute;
  right: 40px;
  top: 50px;
  line-height: 50px;
  border: 0;
  font-size: 24px;
  border-radius: 16px;
  padding: 0 40px;
  background: @color_theme;
  color: #ffffff;
  transition: 0.3s;
  transition-property: transform;
  &.disabled {
    // background: #ffffff;
    // border: 1px solid @color_theme;
    // color: @color_theme !important;
    color: #ffffff;
    opacity: 0.5;
  }
  &:hover {
    color: #ffffff;
  }
  &:active {
    transform: scale(0.8);
  }
}

.status_used,
.status_timeout {
  display: block;
  position: absolute;
  right: 30px;
  top: 30px;
  width: 104px;
  height: 104px;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 104px auto;
}

// .status_used {
//   background-image: url('~@/assets/images/coupons_used@2x.png');
// }

// .status_timeout {
//   background-image: url('~@/assets/images/coupons_overdue@2x.png');
// }

.coupon_type {
  position: absolute;
  display: block;
  left: 20px;
  top: 20px;
  background: @color_tag;
  color: #ffffff;
  border-left: 0;
  border-radius: 10px 4px 20px 0;
  font-size: 18px;
  line-height: 32px;
  padding: 0 15px;
}

// .coupon_card.second {
//   .coupon_wrap {
//     border-left: 8px solid @color_tag;
//   }
//   .coupon_type {
//     display: none;
//   }
//   .coupon_price {
//     background: #f8f8f8;
//   }
//   .coupon_info {
//     &::before {
//       display: none;
//     }
//   }
// }


.pay_wrap,
.pay_hidden,
.pay_main {
  height: 100px;
}

.pay_hidden {
  margin-bottom: 24px;
}

.pay_main {
  z-index: 99;
  bottom: 0;
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  // .footShadow();
  left: 24px;
  right: 24px;
  bottom: 24px;
  border-radius: 49px;
  overflow: hidden;

  .pay_button {
    .buttonBg();
    flex: 1;
    height: 100px;
    border: 0;
    min-width: 212px;
    padding: 0 50px;
    font-size: 34px;
    font-weight: bold;
  }
}
